package com.imooc.service;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
@Slf4j
@Aspect
@Component
public class testAspectJ {

    @Pointcut(value = "execution(public * com.imooc.service.*.*(..))")
    public void BeforeCut(){}

    @Before("BeforeCut()")
    public void beforeLog(){
        log.info("Method之前Log");
    }
}
